import request from '@/utils/request'

export function getEmployeeList(params) {
  return request({
    url: '/api/emp/list',
    method: 'get',
    params
  })
}

export function addEmployee(data) {
  return request({
    url: '/api/emp/add',
    method: 'post',
    data
  })
}

export function updateEmployee(data) {
  return request({
    url: '/api/emp/update',
    method: 'put',
    data
  })
}

export function deleteEmployee(id) {
  return request({
    url: `/api/emp/delete/${id}`,
    method: 'delete'
  })
} 